package com.syh.jn.scm.domain.upstream.event;

import com.syh.core.ddd.domain.DomainEvent;
import com.syh.jn.scm.domain.upstream.entity.finance.UpStatementAccountBill;

public class UpReceiptBillEvent extends DomainEvent<UpStatementAccountBill> {

  public static final String UP_RECEIPT_BILL_LOCK = "upReceiptBillLock";
  public static final String UP_RECEIPT_BILL_UNLOCK = "upReceiptBillUnlock";

  public static UpReceiptBillEvent upReceiptBillLock(Object[] values) {
    UpReceiptBillEvent stateEvent = new UpReceiptBillEvent();
    stateEvent.eventName = UP_RECEIPT_BILL_LOCK;
    stateEvent.values = values;
    return stateEvent;
  }

  public static UpReceiptBillEvent upReceiptBillUnlock(Object[] values) {
    UpReceiptBillEvent stateEvent = new UpReceiptBillEvent();
    stateEvent.eventName = UP_RECEIPT_BILL_UNLOCK;
    stateEvent.values = values;
    return stateEvent;
  }
}

